/*
 * Copyright (c) 2008, Xiong Yingfei, the University of Tokyo All rights
 * reserved.
 */
package ac.jp.u_tokyo.SyncLib.interactive;

import java.io.IOException;
import java.util.HashMap;

import ac.jp.u_tokyo.SyncLib.IDSync;
import ac.jp.u_tokyo.SyncLib.Sync;
import ac.jp.u_tokyo.SyncLib.SyncFactory;
import ac.jp.u_tokyo.SyncLib.dictionaries.KeyFactory;
import ac.jp.u_tokyo.SyncLib.dictionaries.MatchingDictMapCombinator;
import ac.jp.u_tokyo.SyncLib.dictionaries.MaxIntegerKeyFactory;

public class IDDictMapConsole
{

	public static void main(String[] args)
	{
		
		try
		{
			Console.interactiveExec(IDDictMapConsole.class);
		}
		catch (IOException e)
		{
			e.printStackTrace();
		}
	}

	public static SyncFactory getMainFactory()
	{
		final SyncFactory idFactory = new SyncFactory() {

			public Sync create()
			{
				return new IDSync(true);
			}

		};
		
		SyncFactory mainFactory = new SyncFactory() {

			public Sync create()
			{
				return new MatchingDictMapCombinator(idFactory,
				new KeyFactory[] { new MaxIntegerKeyFactory(),
						new MaxIntegerKeyFactory() }, 0);
			}
			
		};
		return mainFactory;
	}
}
